package de.wbh.gwt.form.layouter.shared.activity;

import java.util.List;

import com.allen_sauer.gwt.dnd.client.PickupDragController;
import com.allen_sauer.gwt.dnd.client.drop.CustomDropController;
import com.google.gwt.user.client.ui.IsWidget;

import de.wbh.gwt.form.layouter.gwt.ui.view.widget.Field;

public interface FieldsView extends IsWidget {

	static interface Presenter {

		void createField();

		void fieldCreated(String result);

		void onDragControllerAdded(PickupDragController dragController);

		void onFieldRemoved();

		void removeFromEfd(String id);

	}

	void addField(String fieldId);

	void createField();

	void onDropControllerAdded(CustomDropController dropController);

	void onFieldsCreated(List<Field> fields);

	void setPresenter(Presenter presenter);

	void showFields(Iterable<String> fields);

}
